package com.dd.cloud.user.entity.doctor;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.tomcat.jni.Local;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "赠送次数记录表")
public class DoctorPresenterNum implements Serializable {

    private static final long serialVersionUID = 10086L;


    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 医生id
     */
    @Column(comment = "医生id", length = 4)
    private Integer doctorId;

    /**
     * 赠送类型
     */
    @Column(comment = "赠送类型 1.注册赠送 2.认证赠送", length = 4)
    private Integer type;


    /**
     * 状态
     */
    @Column(comment = "状态 -1.删除 1.未领取 2.已领取 3.已使用 4.失效")
    private Integer status;


    /**
     * 是否累计使用
     */
    @Column(comment = "0.否 1.是")
    private Integer isUse;

    /**
     * 是否可生成订单
     */
    @Column(comment = "0.否 1.是",defaultValue = "0")
    private Integer isCreateOrder;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


    /**
     * 领取时间
     */
    @Column(comment = "领取时间")
    private LocalDateTime giveDate;


}
